package Test;

import dm.ShoppingDM;
import dm.UserDM;
import bean.shoppingCard.ShoppingProduct;
import bean.user.SessionUser;

public class testShoppingDM {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ShoppingDM dm = new ShoppingDM();
		SessionUser user;
		try {
			user = new UserDM().checkUser("o","123");
			ShoppingProduct p = new ShoppingProduct(1, "pc","sony",100,11);
//			dm.addProduct(p.getId(),p.getCount(),user.getUserId());
//			dm.updateProduct(p.getId(),p.getCount(), user.getUserId());
			dm.removeProduct(p.getId(),user.getUserId());
		} catch (Exception e) {
			e.printStackTrace();
		}

		
	}

}
